fixed redundancy in solution returned