sorts out typo in code