added array filling