update function for framework