function wrappers

a general structure of functions