fixed control flow so "a < b < c"