removed deprecated hook