optimise visualization