updated rect example