removed ClassCastException junk