update to use swift array
updates
edits