updated using paperclip