functions and parameters declared properly