code reformat
conditional fp tree generate done