handling of multiple expressions and basic define function