move analycts code