partial function for wrappers