shorten code by setting local compiler variable