compile error, and remove unuse function