rectified the attr_accessor to reader