changed wang to double