get rid of variables if not actually used. Create variables only when a condition to use them is met.