changed signature of decodeLines