working on the hooks