unuseful variables removed