restored old version
intermediate version for initial reg