Add setq function but it is not running as I expected