remove unused lib and function