added a newpage option