use query-string instead of params
use let statement