copying instance variables from class instance variables