added console prints