making restart rectangle