adding scipy dependency