algorithm finished, format still wrong