add type declarations to achieve -Wall and -Werror correctness/safety