added more variables to derived class