use sleep to cut down on unnecessary cpu activity while keeping the script active