removed bars and legend code