add function for exceptional case