added simple line searching feature