removed unused variable
simplified version getting