added a temp array