added increment to global scale