implement norm wrapper function