chris fixed my crappy code