solved some warnings