stats added, inverse for wc added (need some fix)