trying #2 to make compatible with python 3.x