use name hook for as and on