Common software filtering method and its sample program