added the autogenerated methods to functons