fixed central_diff handling of x axis