new graph by second version
improvement on setinterval management into stats