fix conditonal to better identify pertinent lines