plot as hist, remove unused variables