removing debugging console.warn message