added second bmu for calculating offsets