fixed compilation
exposed to python