use case when and ===
using loop