incorporated paul and robert's comments. need to review again for prettyness and practice again. determine if any other bugs exist