made restful return in order of id