changed return type on deposit data segment into array