took out console.log debugging code