working on smooth acceleration