remove double check isinstance