Update miscellaneous.cpp