removed unnecessary field
work on createvalidrect method