Changed closest() to parent() method