bounce fix

made relative to velocity
cleaned code