there are errors both on lines 2 and 3 due to locations being computed wrongly.
debug based on location