added dependency on scipy