fixed function prediction algorithm