changing the method to initialize