reorganize frame counting
wait a momentum, physics is broken!