function prototype should be int