move before hook