add console.log to figure out what is going on