Delted duplicate code in outer file