removing unused pageData variable