remove usage of set_data method (issue #6)