working with java now. need to make sure the formatting is correct