Be more pythonic by using exact method