fixing runtime plotting