code cleanup
sample collection method added in Page