added use of previous check logic