min max metrics done on serverside