condensing / removing duplicate line