remove random casting method