plot working better