make obj.length read-only