prediction algorithm okay for now, cleaned up output
merged