implemented DrawRect