fixing cert variable