removed gexp function