remove useless functions
fix test