removing unused function
removing compiler warnings