changed from speed to duration