adds accessor methods