tested the truncated method and it works