adapt stack