done pagination fucntion for hint fiction