added hypothesis code