fuck, fixed my infinite loop