matching output requirements and polishing files