debugging calc