refactor variables into utility class