working on get_subdata method