fixed enclosing partnmnt()