testing pocket function