renamed function
added in katie's function