make pause work