add getting filter records
change 'type' to enum
add getter