convert tuple into records