enhance rebuild, add max show hide methods