remove ending 0's