fix warning message, remove debug