removed single-use function