fixed a lot of unsigned warnings