modified cw logic to not reject blank lists