added global pointer