refactored doji to a one-liner, tests pass