added middle name in filtering