Use upto instead of for. modify method name.