hooks finally working