wip on weighted second moment method