added sprint logic