removed local variables