update but with bug