forgot refactor in myrial script