switch from class to record