prevented infinite runtime bugs