remove unnecessary functions