learning for lateral weights