added paperclip code