getter/setter for all types