added milestone n=0 as  last pb
adaption to end-milestone for last page