removed if rank 0 statement