List optimization code for review