changing weighting metric and adding limits to ger instead of psql