trying to get removelines() to work