implemented get and set functions