fixes some warnings