function type is integer, not int