idea for page based sampling working