added priority on hooks