filter remove bar function