new methods for class handle and functions