added max number handler