added local variables