removed all local variables