found a better way of removing zeros, compiled and it works fine