moved heavy calculations in background thread