make it look like a function in py3 style