fixxed input (had repeating row threw everything off)