added some bugy stuff for accleration and speed