trying to make loop pause