replace with new trailing zeros function for all three