removed unecessary asInstanceOf