experiments with enclosing function