trying to implement speed