refactor for nokogiri builder