fixing warnings, thx ilje