add function to clear lines