speed improvements for lists