update queries for CW