using range instead of fixed amount