fixes truncate helper