weight corrected digital shift; many test functions