try to work without matplotlib