fixes uninitializes variable