optimized only for primary