better fix for py3.2