use closest() instead of parents()