implemented paperclip feature