TOPT code from long to int