correct if stmt in mark_udpate