remove unnecessary functions.