added some memo and modified the indent rule