removed superfluous test, because of possible race condition