clean unused function