added certexp functin