redid to use variables