add app_cartridge_scale function