implemented male and female filter