terate object's fields using reflection