reversing the logic so it makes sense