fixed some things that bother gcc