CLOUD-269 fixed cs error and removed variable