added getlines()