added comments and variables