fixes repeated lines