added certexp function