D.R.Y. hacking functions