added console.log for debuggin