Shorten non-recursion versoin code