debugged most problems