remove all useless methods