build right block logic