remove legacy functions