How to compare to list