use function instead of variable for DSalcoda