generalizing the stmp