eliminate unnecessary imported functions