finally remove unused function