change 'int' to 'double' for slab-grow factor