added truncation of levels.