make pg toString correct