added local to all local variables