trying to solve error