prepare for registration