fix missing dependency and modify some formatting