adding pwlost feature