used accessors in lambda functions with friend objects, fixes #79