add paperclip functions