factor base and sigmalog filter script