change accessor functions to inline