changed registration id type to char