add function of speed meter