ADD: rect codesnippet