renamed sif.R to tabulation.R to facilitate easier refactoring