fixing up pages ending