revision 3.0

removed unused variables