reset data logic updated