cleaned up array and it's supporting methods.