Format lai code