update for code review feedback: rename query string variable, remove space