added my comments back to the code