remove debug and fix tab vs space error