silliest mistake, took 2 hours to solve