trying to register on initialize