solutio to when no initial is given