added main rectangle over polygon