change local function definition to adhere to our conventions