imports Devynn's function rather than having it copy-pasted in, making function much more elegant