some thoughts on arrays from stackoverflow