fixed REGISTER bug
minor array change