change warning to debug