hopefully should stop infinite looping!