working on the initialization bug