fixed some auto correlation problems, also import division