added pauses to make sure everything ran alright