init solution working