adding bounded rectangle and a related filter