added cog weighted inversed average