fix syntax and placeholder errors