fixed compiler warnings (unneeded code)