modified the passage of variables