make zeros of right type

To maintain type stability