set every 3 seconds to check