replace accessors to methods