modified to clientRect