removed old pointer logic