fixing rest methods