1. add total byte in app_state;