solved conditional check for placeholders