modification for scipy 0.11.0