turned it into a function; added description