making variable assignment compatible with its declaration (scrutinizer fixing)