fixed the baseline distance and updated ranges