function 'bounce' is completed