refactoring some attributes