update lai pixel code