proper fix for compiler warnings