reversed logic fix