trying to solve bugs