restored placeholder replacement to attributes