limits for quicker iterations
 less code duplication