change utility function to professor suggested one.