resist_square