porting calc7 to x3