pointer enabled function