removed reset from getrelations()