fixed a floating point exception, implemented STATS operator