added a comment
renamed a few variables