major changes to the result class