added declarations for functions, variables and constants