debugging (not completed)