add instanceof test