unify the format of return data