move data getter/setter to public space