to start coding check update state