moved testing into an var