prediction algorithm correct but not working, revamped model to figure out why, got stuck in model