Printing portions if there are two different porions