added console.log
updated console.log function