make process take a frames argument