register has some problem