truncate undefined and make result cells smaller