updates for function definitions, trying to limit scope so that many function calls aren't accidentally considered function definitions