fix constructors. add lambda.