adaped inpiut file according to specs