changed the enqueue hook