cwid should be a variable