change to attr_writer