added rectangle to engine api