change pos of graph
adjust buffer size based on speed