VG: added rect feature, added feature repetition, optimized