added a weighted average