improved plot_positions