implementation stats with try catch