remove unused method and field