added a weighting map
- fixed weights.nP