update status correctly