tested code, god dammit how did i miss that