while now instead foreach