change accessor to writer