second update

Change in logic