corrected logic as par 10 seconds