correct the logic