remove warn console statement