record logic updated