removed typcasts and changed changed "Rabdom" variables to object
variables.