add getAllFields at all level of class hierarchy