refactoring to getters and setters for row