removing directive to create hook (not working)