fix inc bug and add stats