added updates function