added paperclip functionality