added hangTime to gravity