refactoring for single retrievals by id