add console.log for debugging