working pointer dynamically calculated location