update but with weird segfault