changed to python3 syntax