added calculate speed