updated integerisation to accept weights of 0