attach an expression to an attributes method