changing to vars for better unit testability