registration alhorytm was improved