added hittail code