use function expressions in various places