correct logic check