get rid of console.log in code