make sure youre exercising him. that can go a long way, and i dont mean walk, get them running after a ball for thirty minutes. if you still experience barking you need to stop acknowledging it all together and it will stop when he realizes you wont respond. one or two nights of missed sleep are worth this valuable lesson to the dog that when its rest time they sleep.