add statistics in the front end
resolve confilcts