trying to solve bug