debugging phase