running calculation on server