moved to array-helper