added console logs