removing extractLines function