change codes to simple and short.