typo + added console messages