made change in int c and return function