array and hash fixes