fix indent error and missing packages