prevent any possible infinite looping