paperclip functionality added