-n 
fixed register bug