add downsampling helper methods in Tid
bug fix to upsampling patch for initialization
typo fix