final version, added pauses