mod rq() for safe