added truncation to get correct value