change the way of registration