add record function
remove some useless files