calculations in background