added truncation support