update reference to function in module template