fixed really annoying code thing thanks to @wtlangford