changed get_slope