added registration loop
dddd