second working version- fixed registration, delete comments
second working version- fixed registration, delete comments