updated run command to work with matplot graph