in the middle of bounce calculation