added a repause function