before convert to postgres