rewritting of hook field attach