implemented registration id adding