remove update function and add time in pobject