fix function return matters