fixing the REST