weighted-z appears to be working