remove the sleep 0.5 codes