variables changed
added comments