added code to handle placeholders in header file