add format to fit demo program