some lambda moved to type.js