adding typecast option
optiming hash fragment changes