first attempt implementing paperclip