trying to add conditions to list items