removed matplotlib dependency