1. code clear; 2. load/save preference