wrote get_square_subframe