updated paper.hs