so the problem wasn't the code