working, just learned nested loops(sort of...) fuck