changed warn to debug