adapted main to orpl stats