replace multiple instance variables with '@states'