move truncation method to its correct class