better use of variables