minor bugs. remove phase feature. need rerun