used for negative loop to speed things up.