kinda useless code cleanup related to compiler warnings