helper functions (usefull for bindings)