Please fix the grammatical problems in the given sentence:
Secondly we need to gather more information, like previous failed attempts of solving similar problems, whether a need for a new solution is needed or not and the problem with existing solutions.
Secondly, we need to gather more information, like previous failed attempts at solving similar problems, whether a need for new solution is needed or not, and the problem with existing solutions.