pausing function check