adding e argument to control the pause ability,
have to think a better way here.