updates function handling