add Wrect functions