refactored registration subscriber