selection now takes into account rotation and scale