setting local flag to false