added private variables
modified comment