refactored slopes and eps_nbr_slope ... have yet to debug new code