remove after register funcion