correct logic 2