use Pythonic to impl "same"