fix syntax and pretty