remove stat related codes