remove debug check