updated pause code