issues: add process function