debug correctly