disabled compiler warnings for intended behavior