fix accessor function