more effective use of the document object