fixed some more compiler warnings:
weird obsolete without replacement function
unused variables