added small delay for better cpu management