adding getter for functions