change codes to completing