added array set functions