performance bad, trying to remove single console.log