correcting hook assignment