change array.every to array.forEach