changed return type in giftcollection to byte array