using access hooks better