fixed extra j insertion