RESULTS: with mask in registration + improvement in the code