clear warnings by declare locals at start of block