update updatePaper funtion by mike