further reduce complexity of xib