extract method within_limits