replaced return Object with return void in visit methods