switch to a record