added max with comparable<item>