file adapted to other code