refactoring: fix compiler warnings