handle escape cases