simplify some function return value