refactor ingestaction