added console statements