move trial verification functions to objects