proper debugging