updated the grow and shrink functions for better precision. switched back to floats.