still bug in register