change checking record logic before emit