refactoring get objects methods