remove function duplicate