updated cull to handle r_list or file as input list