added parsing functions for lines