localizing more variables