added imtrunc