rewrote pages_list to check for page weights