fixes for truncation problem