replaced getter methods with @attr-accessor