removed almost all compilator warnings