tidy up prediction class