added scipy dependency