removed incomplete registration code