functions implementing hooks must use correct argument names