improvment of Bouncing Sam