array handling, of sorts, added