lost [0] in lines 20,21