function defination cases