optimize requires