remove possibly useless functions