fixed bug in WA (wasnt dividing by total weights)