misread the problem statement, fixing