reverted attachment-code