debugging to see why it is only storing one data memeber at a time