got plot working