fixed etl script