fixed the trunc magic