clean up some array result stuff