fixed condition to print separator