added ValueError exception