updated PR#25. trunc function erased, indent