move hooks to right location