removed commented code
fixed paperclip bug for duplicate ids