adding type check for ListField