added in check for presence of paper