additional variable added to make code more clear