redundant because of instanceof below