update bean definition