removed duplicate insideRect defs