fix syntax on some function declarations