added capture_loss