use pre-existing function from amoeba