code cleanups

* removed not used imports
* removed not needed cast
* removed doublicated ";"