remove unused variable, correct name of $lines variable