fix syntax and missing constant name