updates to put_data method