pose operations should be in main script area (not within functions)