plotting function and shaky parsing