[FOLD] construct/destroy function for element