add instanceof. fix me