ternary syntax is not compatible with python2.4 :(