fix filter and new funtion getSecurity cardinality