ununsed variables removed