inside() corrected to work with current size