modified rec command