Title: Competition, long run contracts and internal inefficiencies in firms