refactored, added pause between trials