function ret type fix