working on 5h, solution WAY too inefficient