My logic has been updated now