add directive 'rectangle'