update  ready func