created line
some small fixes for rectangle