restructured perc.candidates to sorted list, added plot_3d